package com.design.pattern.bridging;

import com.design.pattern.bridging.impl.Circle;
import com.design.pattern.bridging.impl.LinuxDrawAPI;
import com.design.pattern.bridging.impl.Rectangle;
import com.design.pattern.bridging.impl.WindowDrawAPI;

/**
 * @Projectname: design-pattern
 * @Filename: Main
 * @Author: FANSEA
 * @Date:2024/9/24 15:05
 */
public class Main {
    public static void main(String[] args) {
        PlatFormDrawAPI winApi = new WindowDrawAPI();
        PlatFormDrawAPI linuxApi = new LinuxDrawAPI();
        Shape circle = new Circle(winApi);
        Rectangle rectangle = new Rectangle(linuxApi);
        circle.draw();
        rectangle.draw();
    }
}
